﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="Fav.aspx.cs" Inherits="SharingCenter.Web.User.Events.Fav" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    我关注的活动
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/User/Events/Fav.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <myuc:GenericTabs ID="GenericTabs1" runat="server" SelectedItem="fav" Section="MyEvent" />
    <h2 class="bb">
        <span class="nss ns-calendar"></span><span class="iconlabel">我关注的活动</span></h2>
    <asp:ListView ID="lvFutureEvents" runat="server" DataSourceID="LinqDataSource1">
        <LayoutTemplate>
            <div id="favlist">
                <div runat="server" id="itemPlaceholder">
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div class="ctn1 itemcont">
                <div class="bdr-all">
                    <h3 class="nom w6 ctn3">
                        <div class="fc">
                            <div class="left">
                                <asp:Literal ID="Literal1" runat="server" Text='<%#Eval("StartDate", "{0:yyyy年M月d日}") %>'></asp:Literal>
                                <asp:Literal ID="Literal2" runat="server" Text='<%#Convert.ToDateTime(Eval("StartDate")) < DateTime.Now ? "(已过期)" : "" %>'></asp:Literal>
                            </div>
                            <div class="textfar">
                                <asp:HyperLink CssClass="delfavbutton" ToolTip="取消关注" rel='<%#Eval("EventId") %>'
                                    ImageUrl="../../Content/images/icons/cross_small.png" runat="server" />
                            </div>
                        </div>
                    </h3>
                    <div class="ctn2">
                        <div class="fc">
                            <div class="left">
                                <asp:Image runat="server" ImageUrl="~/Content/images/icons/star_on.png" AlternateText="精" ToolTip="精" Visible='<%#Eval("IsRecommended") %>' />
                    <asp:Image runat="server" ImageUrl="~/Content/images/icons/fire_on.png" AlternateText="热" ToolTip="热" Visible='<%#Eval("IsHot") %>' />

                                <asp:HyperLink CssClass="sz-m" ID="HyperLink1" runat="server" Text='<%#Eval("Title") %>'
                                    NavigateUrl='<%#Eval("EventId", "~/Mod/Events/?id={0}") %>'></asp:HyperLink>
                                <asp:HyperLink CssClass="sz-m" ID="HyperLink2" runat="server" ImageUrl="~/Content/images/icons/icon_new-window.gif"
                                    Target="_blank" ToolTip="新窗口" Height="8" NavigateUrl='<%#Eval("EventId", "~/Mod/Events/?id={0}") %>'></asp:HyperLink>
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("Category", "[{0}]") %>' CssClass="litetext"></asp:Label>
                                <div class="ctn-p-t">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="litetext">
                                                地点:
                                            </td>
                                            <td class="ctn-p-l">
                                                <asp:Label ID="Label2" runat="server" Text='<%#Eval("Place") %>'></asp:Label>
                                                <asp:Label ID="Label3" runat="server" Text='<%#Eval("Venue") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="litetext">
                                                时间:
                                            </td>
                                            <td class="ctn-p-l">
                                                <span>从</span>
                                                <asp:Label ID="Label4" runat="server" Text='<%#Eval("StartDate", "{0:yyyy年M月d日 HH:mm}") %>'></asp:Label>
                                                <span>到</span>
                                                <asp:Label ID="Label5" runat="server" Text='<%#Eval("EndDate", "{0:yyyy年M月d日 HH:mm}") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="litetext">
                                                报名:
                                            </td>
                                            <td class="ctn-p-l">
                                                <asp:Label ID="Label6" runat="server" Text='<%#Eval("TotalParticipants") %>'></asp:Label>
                                                /
                                                <asp:Label ID="Label7" runat="server" Text='<%#(int)Eval("MaxParticipants")>0?Eval("MaxParticipants"):"无限制"%>'></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ItemTemplate>
        <EmptyDataTemplate>
            <myuc:MessageBox ID="MessageBox1" runat="server" MessageType="Generic" Text="目前没有关注任何活动。" />
        </EmptyDataTemplate>
    </asp:ListView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server">
    </asp:LinqDataSource>
</asp:Content>
